package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserDao {
    User findByUsername(String username);

    //查询管理员的全部信息
    public List<User> findUser();

    public List<User> userList();

    public Page<User> selectByCondition(String queryString);

    public void add(User user);

    public void setUserAndRole(Map<String, Integer> map);

    public void deleteAssociation(Integer id);

    public void edit(User user);

    public User findById(Integer id);

    public List<Integer> findRolesByUserId(Integer id);

    public void delete(Integer id);

}


